package com.blacksee.bluetoothpoker.network.messages;

import com.blacksee.bluetoothpoker.logic.net.mypapit.java.StringTokenizer;

public class PlayerRequestMessage implements NetMessage {
	
	private int senderID;
	private String senderName;

	public PlayerRequestMessage(){
	}
	
	public PlayerRequestMessage(String senderName){
		this.senderName = senderName;
	}
	
	public int getSenderID() {
		return senderID;
	}
	
	public void setSenderID(int senderID) {
		this.senderID = senderID;
	}
	
	public String getSenderName(){
		return senderName;
	}
	public void parseParameters(String message) {
		// TODO Auto-generated method stub
		StringTokenizer tok = new StringTokenizer(message,"*");
		String messageHead = tok.nextToken();
		
		this.senderName = tok.nextToken();
	}

	public String GetMessageString() {
		String text = "PLAYER_REQUEST*" + this.senderName;
		return text;
	}

}
